var db = require('../../dbs/mysql').connection;
exports.deleteNews = function(req, res, next){
    let sql = 'DELETE FROM news WHERE id= ' + req.body.id;
    db.query(sql,function(err, result){
        if(err){
            res.send(err)
        }else{
            res.send('ok')
        }
    })
}